package cn.buk.tms.flight.dto;

import java.util.ArrayList;
import java.util.List;

public class FlightRefundFee {

  /**
   * 错误代码
   * 0 - 无错误
   */
  private int errcode;

  /**
   * 错误信息
   */
  private String errmsg;

  /**
   * 航司退票总金额(不含税）
   */
  private double totalAmount;

  /**
   *航司退票手续费
   */
  private double surcharge;

  private List<CarrierFeeDto> fees;

  public int getErrcode() {
    return errcode;
  }

  public void setErrcode(int errcode) {
    this.errcode = errcode;
  }

  public String getErrmsg() {
    return errmsg;
  }

  public void setErrmsg(String errmsg) {
    this.errmsg = errmsg;
  }

  public double getTotalAmount() {
    return totalAmount;
  }

  public void setTotalAmount(double totalAmount) {
    this.totalAmount = totalAmount;
  }

  public double getSurcharge() {
    return surcharge;
  }

  public void setSurcharge(double surcharge) {
    this.surcharge = surcharge;
  }

  public List<CarrierFeeDto> getFees() {
    if (fees == null) {
      fees = new ArrayList<>();
    }
    return fees;
  }

  public void setFees(List<CarrierFeeDto> fees) {
    this.fees = fees;
  }
}
